
 /**
 * DomainModel.java.java.
 * User: BrianChen Date: 2012-6-4 下午09:26:14
 *
 * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
 * All rights reserved.
 */
package com.collapsar.core.orm.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * <pre>
 * REVISIONS: 
 * Version 	Date 		Author 			Description
 * ------------------------------------------------------------------- 
 * 1.0 		2012-6-4 	BrianChen 	1. Created this class. 
 * </pre>
 * 
 * @author BrianChen
 * @date 2012-6-4 下午09:26:14
 * @version 1.0
 * @see
 * 业务模型的基类
 */
@SuppressWarnings("serial")
abstract class DomainModel implements Serializable{
	protected static final Log logger = LogFactory.getLog(DomainModel.class);
	
	protected static final String DATE_FORMAT = "yyyy-MM-dd";
	
	protected static final String TIME_FORMAT = "HH:mm:ss";
	
	protected static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
	
	protected static final String TIMESTAMP_FORMAT = "yyyy-MM-dd HH:mm:ss.S";
	
	public String toString(){
		return ReflectionToStringBuilder.toString(this);
	}
	
	public abstract int hashCode();
	public abstract boolean equals(Object obj);
}

